package com.zjw;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author zjwblog <co.zjwblog@gmail.com>
 * @Date 2021/11/18 12:14 上午
 * @Version 1.0
 */
public class JclJDKLoggingApplication {
  private static final Logger logger = LoggerFactory.getLogger(JclJDKLoggingApplication.class);
  private static final Log log = LogFactory.getLog(JclJDKLoggingApplication.class);

  public static void main(String[] args) {
    // 本身实现包里面的使用方式
    log.trace("trace...");
    log.debug("debug...");
    log.info("info...");
    log.warn("warn...");
    log.error("error...");
    // slf4j 使用方式
    logger.trace("trace...");
    logger.debug("debug...");
    logger.info("info...");
    logger.warn("warn...");
    logger.error("error...");
  }
}
